<?php $__env->startSection('title','个人档案'); ?>
<?php $__env->startSection('css'); ?>
<link href="<?php echo e(asset(getThemeAssets('css/toastr.min.css'))); ?>" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo e(asset(getThemeAssets('dataTables/datatables.min.css', true))); ?>">
<style type="text/css">
    .widget .row span{
      font-size: 15px;
      font-weight: bold;
    }
    .p-md{
        padding-top: 6px;
        padding-bottom: 0px;
        margin-top: 0px;
        margin-bottom: 30px;
    }
    .m-b-md{
        padding-top: 3px;
    }
    .page-heading{
        padding-bottom: 2px;
    }
    .alert{
        /*padding-bottom: 0px;*/
        padding-left: 23px;
        padding-right: 23px;
        margin-bottom: 0px;
    }
    .alert p{
        font-size: 14px;
        font-weight: 12px;
    }
    .alert a{
        text-decoration: underline;
    }
    .canceled{
        margin: 0;
        padding: 0;
    }
    #login-form {
        margin-top: 30px;
        width: 1200px;
        overflow-x: scroll;
    }
    #login-form img{
        width: 100%;
        margin-left: 0;
    }
    #footerrow {
      margin-top: 100px;
    }
    .col-sm-6 {
      padding: 3px;
    }
    .col-sm-12 {
      margin: 0;
      /*padding: 0;*/
    }
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>

<div class="row wrapper border-bottom page-heading">
  <div class="col-sm-4">
    <h2><?php echo trans('archives.title'); ?></h2>
    <ol class="breadcrumb">
        <li>
            <a href="<?php echo e(url('admin')); ?>"><?php echo trans('home.title'); ?></a>
        </li>
        <li class="active">
            <strong><?php echo trans('archives.title'); ?></strong>
        </li>
    </ol>
  </div>
</div>
<div id="login-form">
    <div class="logo">
        <img id="logo" src="<?php echo e(asset(getThemeAssets('img/logo2.png'))); ?>">
    </div>
    <div class="row" style="width: 1600px;overflow-x: scroll;">
    <div class="col-sm-12" style="">
      <div class="col-sm-6">
        <div class="form-group">
            <div class="input-group">
              <div class="input-group-addon">
                <span class="glyphicon glyphicon-volume-up"></span>
              </div>
                <div class="alert alert-info">
                  <p>当前用户个人获奖成果记录</p>
                </div>  
            </div>
        </div>
      </div>
      <div class="col-sm-12" style="">
          <table class="table table-striped table-bordered table-hover dataTable no-footer" id="datatables" style="">
              <thead>
              <tr>
                <th>职工编号</th>
                <th>教师名称</th>
                <th>获奖内容</th>
                <th>奖项分类</th>
                <th>奖项级别</th>
                <th>具体奖项</th>
                <th>奖金</th>
                <th>获奖日期</th>
                <th>获奖学年</th>
                <th>其他成员</th>
                <th>证明文件路径</th>
                <th>提交时间</th>
                <th>操作</th>
              </tr>
              </thead>
          </table>
      </div>

    </div>
  </div>

  <!-- 个人教学建设成果展示 -->
  <div class="row" style="width: 1600px;overflow-x: scroll;">
    <div class="col-sm-12">
      <div class="col-sm-6">
        <div class="form-group">
            <div class="input-group">
              <div class="input-group-addon">
                <span class="glyphicon glyphicon-volume-up"></span>
              </div>
                <div class="alert alert-info">
                  <p>当前用户个人教学建设记录</p>
                </div>  
            </div>
        </div>
      </div>
      <div class="col-sm-12" style="">
          <table class="table table-striped table-bordered table-hover dataTable no-footer" id="datatableTwo" style=" ">
              <thead>
              <tr>
                <th>项目编号</th>
                <th>项目名称</th>
                <th>立项年度</th>
                <th>职工编号</th>
                <th>教师姓名</th>
                <th>项目分类</th>
                <th>具体类别</th>
                <th>项目级别</th>
                <th>建议经费</th>
                <th>是否结束</th>
                <th>业绩分</th>
                <th>业绩分计算科室</th>
                <th>归档文件号</th>
                <th>操作</th>
              </tr>
              </thead>
          </table>
      </div>

    </div>
  </div>
</div>
                        

<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script src="<?php echo e(asset(getThemeAssets('js/toastr.min.js'))); ?>"></script>
<script src="<?php echo e(asset(getThemeAssets('dataTables/datatables.min.js', true))); ?>"></script>
<script src="<?php echo e(asset(getThemeAssets('dataTables/buttons.colVis.min.js', true))); ?>"></script>
<script type="text/javascript">
    $(function () {
      setTimeout(function() {
                      toastr.options = {
                          closeButton: true,
                          progressBar: true,
                          showMethod: 'slideDown',
                          timeOut: 8000
                          };
                      toastr.info('注意：页面首次加载时间较长，请等待或刷新！拖动表格底部滑条可向右滚动！打印Excel时可选择目标字段！');
      }, 100);

      var datatables = $('#datatables').DataTable({
        dom: 'Brtip',
        buttons: [
          {extend: 'colvis', text: '选择列'},
          {extend: 'excel', text: '导出excel文件'},
          {extend: 'csv', text: '导出csv文件'},
        ],  
        processing: true,
        serverSide: true,
        deferRender: true,
        pageLength: 10,
        ajax: {
            url: "<?php echo e(url('/admin/archives/awardsdata')); ?>",
        },
        columns: [
          {searchable: true, width: 30, data: 'jobnumber'},
          {
            searchable: true,
            width: 80,
            data: 'name',
          },
          {
            searchable: false,
            data: 'award_content',
            width: 150,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'award_category',
            width: 150,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'award_level',
            width: 50,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'award_prize',
            width: 50,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'award_money_amount',
            width: 30,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'award_time',
            width: 70,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'award_xuenian',
            width: 100,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'allusers',
            width: 100,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'award_img_url',
            width: 100,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: null,
            width: 100,
            render: function (data, type, row) {
                return '<a href="/' + row.id + '" class="btn btn-xs btn-info"><i class="fa fa-eye"></i></a> <a href="<?php echo e(url('/admin/archives/edit')); ?>/' + row.id + '" class="btn btn-xs btn-warning"><i class="fa fa-edit"></i></a> <a href="<?php echo e(url('/admin/archives/destroy')); ?>/' + row.id + '" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i></a>';
            }
          }
        ],
        initComplete: function () {
          this.api().columns([1]).every(function () {
            var column = this;
            var input = document.createElement('input');
            $(input).appendTo($(column.footer()).empty()).on('change', function () {
              column.search($(this).val(), false, false, true).draw();
            });
          });
        }
      });

      // 个人教学建设展示
      var datatables = $('#datatableTwo').DataTable({
        dom: 'Brtip',
        buttons: [
          {extend: 'colvis', text: '选择列'},
          {extend: 'excel', text: '导出excel文件'},
          {extend: 'csv', text: '导出csv文件'},
        ],  
        processing: true,
        serverSide: true,
        deferRender: true,
        pageLength: 10,
        ajax: {
            url: "<?php echo e(url('/admin/archives/constrdata')); ?>",
        },
        columns: [
          {searchable: true, data: 'project_id'},
          {
            searchable: true,
            width: 180,
            data: 'project_name',
          },
          {
            searchable: false,
            data: 'create_year',
            width: 30,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'jobnumber',
            width: 50,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'charge_name',
            width: 30,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'category',
            width: 60,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'level',
            width: 60,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'place_level',
            width: 60,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'proposed_fund',
            width: 30,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'hasfinished',
            width: 60,
            render: function (data, type, row) {
              if (data == 0) return '否';
              return '是';
            }
          },
          {
            searchable: false,
            data: 'perfor_score',
            width: 30,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'perfor_score_room',
            width: 60,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: 'archive_number',
            width: 60,
            render: function (data, type, row) {
              return data;
            }
          },
          {
            searchable: false,
            data: null,
            width: 100,
            render: function (data, type, row) {
                return '<a href="/' + row.id + '" class="btn btn-xs btn-info"><i class="fa fa-eye"></i></a> <a href="<?php echo e(url('/admin/archives/edit')); ?>/' + row.id + '" class="btn btn-xs btn-warning"><i class="fa fa-edit"></i></a> <a href="<?php echo e(url('/admin/archives/destroy')); ?>/' + row.id + '" class="btn btn-xs btn-danger"><i class="fa fa-trash"></i></a>';
            }
          }
        ],
        initComplete: function () {
          this.api().columns([1]).every(function () {
            var column = this;
            var input = document.createElement('input');
            $(input).appendTo($(column.footer()).empty()).on('change', function () {
              column.search($(this).val(), false, false, true).draw();
            });
          });
        }
      });
    })
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.'.getTheme(), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>